﻿@model FlowerShop.Core.Models.Tgood

@{
    ViewBag.Title = "商品详情";
}

<h2>Details</h2>
<div>
    <h4>@Model.G_name</h4>
    <p>价格: @Model.G_xiaoshoujia</p>
    <p>库存: @Model.G_kuchun</p>
    <p>描述: @Model.G_miaosu</p>
    <p>
        图片:
        <img src="~/images/@Model.Image" alt="商品图片" style="width:100px; height:100px;" />
    </p>
</div>

@using (Html.BeginForm("AddToCart", "Cart", FormMethod.Post))
{
    <input type="hidden" name="productId" value="@Model.G_id" />
    <input type="submit" value="加入购物车" class="btn btn-primary" />
}

<a href="@Url.Action("Index", "Product")">返回商品列表</a>